package com.k.sshm.boot.feature.mvc.minio.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MinioConfig {
    @Bean
    public MinioClient buildClient() {
        //构造方法 minio客户端
        MinioClient minioClient = MinioClient.builder()
                .endpoint("http://minio:9100/")
                .credentials("adminminio", "adminminio")
                .build();
        return minioClient;
    }
}
